package com.sse.product.common;

public enum ResultCode {
    SUCCESS("0000", "操作成功"),
    SYSTEM_ERROR("1001", "系统错误"),
    BIZ_ERROR("1002", "业务错误"),

    NO_LOGIN("2001", "未登录"),
    ACCESS_DENY("2002", "未授权"),
    LOGIN_FAIL("2003", "登录失败"),
    LOGOUT_SUCCESS("2004", "注销成功");

    private String code;
    private String msg;

    ResultCode(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
